<?php
if($_POST['categoria']){
		if(XSRF("admin-wmb.php")){
			if($Categorias=$SQL->consulta("INSERT INTO set_poster_categorias VALUES (NULL , '".clean($_POST['categoria'])."');")){
			echo "<label class='titulo'>$_P[ccorrect]<br /></label>";
			}else{
			echo "<label class='titulo'>$_P[cerror]<br /></label>";
			}
			?><div  class="marco_est" style="border:dashed 1px #000;" >
             <a href="admin-wmb.php?modulo=poster" class="link-n">
<img src="imagenes/regresar.jpg"  border="none"/>
<?=$_P['return']?>
</a>
<?
}
}else{
?>
<label class='titulo'><?=$_P['new']." ".$_P['category']?><br /></label>
<div  class="marco_est" style="border:dashed 1px #000;" >
             <a href="admin-wmb.php?modulo=poster" class="link-n">
<img src="imagenes/regresar.jpg"  border="none"/>
<?=$_P['return']?>
</a> | <small>Te recordamos que esto es unicamente para ordenar tus sitios</small>
<table width="280" border="0" cellpadding="0" cellspacing="0" style="background:#CCC;text-align:center; margin-left:75px;">
<div id="usuario" style="display:none"></div>
<form method="post" action="" name="agregar_categoria">
<tr class="headers">
    <th  height="28"  style="text-align:right"><?=$_P['category']?> :</th>
    <td><input name="categoria" type="text" maxlength="20" /></td>
</tr>
<tr class="headers">
    <td  height="28"  colspan="2" style="text-align:center"><input type="submit"  name="enviar" value="<?=$_P['add']." ".$_P['category']?>" /></td>
</tr>
</form>
</table>
</div>
<?
}
?>